
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import axios from 'axios'

import QS from 'qs'

window.$post_json = axios.post

window.$post_form = (url, form) => {
  return new Promise(resolve => {
    axios.post(url, QS.stringify(form)).then(resolve)
  })
}

const app = createApp(App)

app.use(router)

app.mount('#app')